package cn.iocoder.yudao.module.pypm.controller.admin.comment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;


@Schema(description = "管理后台 - 评论新增/修改 Request VO")
@Data
public class CommentSaveReqVO {

    @Schema(description = "评论ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27130")
    private Long id;

    @Schema(description = "关系表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17418")
    @NotNull(message = "关系表ID不能为空")
    private Long relevanceId;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "评论内容不能为空")
    private String content;

    @Schema(description = "markdown原文")
    private String mkcontent;

    @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11379")
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @Schema(description = "用户ID", example = "685")
    private Long userId;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "评论的父类ID", example = "5056")
    private Long parentId;

}